(Ahsaab) 33 : 24
لِيَجْزِيَ اللَّهُ الصَّادِقِينَ بِصِدْقِهِمْ وَيُعَذِّبَ الْمُنَافِقِينَ إِنْ شَاءَ أَوْ يَتُوبَ عَلَيْهِمْ ۚ إِنَّ اللَّهَ كَانَ غَفُورًا رَحِيمًا
For Allah to reward the Truthful for their Truthfulness, and to punish the hypocrites if He intends, or to accept their repentance, indeed Allah is the Forgiving, the Merciful.
See explanation 25: 71; 29: 11.